home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / status.zip / STAT.H next >
Text File  |  1993-01-28  |  1KB  |  36 lines

  1. /*
  2.  * stat.h -- interface to status bar
  3.  * Copyright (c) Stephen Crane February 1993
  4.  */
  5.  
  6. #define SF_LEFT        0x0000
  7. #define    SF_RIGHT    0x0001
  8. #define SF_CENTRE    0x0002
  9. #define SF_MAX        0x0010
  10.  
  11. /*
  12.  * CreateStatus -- create a status bar.
  13.  * hparent -- status bar lives at the bottom of this window.
  14.  * style -- status bar's style, e.g. WS_VISIBLE | WS_CHILD | WS_CLIPSIBLINGS
  15.  * area -- returned status bar client area.
  16.  * hf -- font to be used to draw the text.
  17.  * strs -- an array of pointers to maximum-length strings.
  18.  * ns -- the number of strings to be displayed.
  19.  */
  20. HWND FAR PASCAL CreateStatus (HWND hparent, DWORD style, LPRECT area, HFONT hf, LPSTR FAR *strs, int ns);
  21.  
  22. /*
  23.  * UpdateStatus -- update a single element in the status bar.
  24.  * hstat -- status bar window.
  25.  * style -- style to be used when drawing text, i.e. TA_LEFT | TA_CENTER | TA_RIGHT.
  26.  * n -- index of string to be updated.
  27.  * str -- new string to be displayed.
  28.  */
  29. BOOL FAR PASCAL UpdateStatus (HWND hstat, UINT style, int n, LPSTR str);
  30.  
  31. /*
  32.  * DestroyStatus -- destroy a status bar.
  33.  * hstat -- the condemned status bar window.
  34.  */
  35. void FAR PASCAL DestroyStatus (HWND hstat);
  36.